﻿using System.Text.Json.Nodes;
using System.Text.Json.Serialization;

namespace SMCL.Core.Utils.Auth.Json
{
    internal class McProfileResponse
    {
        [JsonInclude, JsonPropertyName("id")]
        public string Id { get; set; }
        [JsonInclude, JsonPropertyName("name")]
        public string Name { get; set; }
        [JsonInclude, JsonPropertyName("skins")]
        public Skin[] Skins { get; set; }
        [JsonInclude, JsonPropertyName("capes")]
        public JsonNode[] Capes { get; set; }
        [JsonInclude, JsonPropertyName("profileActions")]
        public JsonNode ProfileActions { get; set; }
    }
    public class Skin
    {
        [JsonInclude, JsonPropertyName("id")]
        public string Id { get; set; }
        [JsonInclude, JsonPropertyName("state")]
        public string State { get; set; }
        [JsonInclude, JsonPropertyName("url")]
        public Uri Url { get; set; }
        [JsonInclude, JsonPropertyName("textureKey")]
        public string TextureKey { get; set; }
        [JsonInclude, JsonPropertyName("variant")]
        public string Variant { get; set; }
        [JsonInclude, JsonPropertyName("alias")]
        public string Alias { get; set; }
    }
}
